<div class="one_news" id="one_news">
    <a href="/admin/project/add" class="sexybutton sexysimple sexygreen">Add New Project</a><br />
</div>

<table width="100%" cellspacing="0" cellpadding="8" class="newsfeed" id="myTable" border="0"  valign="top">
<thead>
    <tr>
        <th>ID#</th>
        <th>Billable</th>
        <th>Project #</th>
        <th>Name</th>
        <th>&nbsp;</th>
        <th>&nbsp;</th>
        <th>&nbsp;</th>
        <th>&nbsp;</th>
    </tr>
</thead>    
<tbody>

    <?php
    foreach ($this->paginator as $oItem)
    {
        ?>
    <tr class="{id: '<?php echo $oItem['id']; ?>'} <?php echo 1 == $oItem['base'] ? 'base' : ''; ?>" valign="top">
        <td><?php echo $oItem['id']; ?></td>
        <td class="<?php echo $oItem['billable'] ? 'billable' : 'free'; ?>"><?php echo 1 == $oItem['billable'] ? 'billable' : 'free'; ?></td>  
        <td class="{field: 'project_num'}"><?php echo $this->escape($oItem['project_num']); ?></td>
        <td class="{field: 'name'}"><?php echo $this->escape($oItem['name']); ?></td>

        <td><a href="/admin/project/edit/id/<?php echo $oItem['id']; ?>"  class="sexybutton sexysimple sexygreen"><span class="edit">Edit</span></a></td>
        <td class="del_element">
        <?php if (! in_array($oItem['id'], $this->allInReport)) { ?>
        <a
            href="/admin/project/delete/id/<?php echo $oItem['id']; ?>" class="sexybutton sexysimple sexygreen"><span class="delete">Delete</span></a>
        <?php } ?>    
            </td>
        <td><?php echo 1 == $oItem['base'] ? 'base' : ''; ?></td>
        <td><?php echo 1 == $oItem['time_off'] ? 'time off' : ''; ?></td>                
    </tr>
    <?php
    }
    ?>
    
</tbody>    
</table>

    <?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>
